package com.softaria.server.seo;

import java.util.Set;

import javax.servlet.http.HttpServletRequest;

import com.softaria.windows.seo.ParameterSet;

public class RequestParameterSet implements ParameterSet {

  private HttpServletRequest request;

  public RequestParameterSet(HttpServletRequest request) {
    super();
    this.request = request;
  }

  @Override
  public String getParameter(String name) {

    return request.getParameter(name);
  }

  @SuppressWarnings("unchecked")
  @Override
  public Set<String> getParameterNames() {
    return request.getParameterMap().keySet();
  }

}
